@ECHO OFF

REM ***********************************************************
REM Currently not used
REM Intended to be called from every PreBuildSteps.bat
REM where code generation is needed, to have reference to TextTransform.exe
REM at one place
REM Also, it should use CompareFileDates.vbs in order to 
REM execute code generation only if one of the source files is
REM newer than generated file
REM ***********************************************************

SET XLSFILE=%1
SET INFILE=%2
SET OUTFILE=%3
SET CODEGEN="C:\Program Files\Common Files\microsoft shared\TextTemplating\10.0\"TextTransform.exe

ECHO (RE)GENERATING %OUTFILE%...
DEL %OUTFILE%
%CODEGEN% -out %OUTFILE% -a !!ExcelPath!%XLSFILE% %INFILE%
ECHO DONE2
